import PrivateRoute from './privateRoute.jsx'

const WrapperRouteComponent = ({ auth, children }) => {
	if (auth) {
		return <PrivateRoute>{children}</PrivateRoute>
	}
	return <>{children}</>
}

export default WrapperRouteComponent
